Methods and Apparatus For Attaching Application Specific Functions Within An Array Processor

ABSTRACT

A multi-node video signal processor (VSP N ) is describes that tightly couples multiple multi-cycle state machines (hardware assist units) to each processor and each memory in each node of an N node scalable array processor. VSP N  memory hardware assist instructions are used to initiate multi-cycle state machine functions, to pass parameters to the multi-cycle state machines, to fetch operands from a node&#39;s memory, and to control the transfer of results from the multi-cycle state machines.

RELATED U.S. APPLICATION DATA

The present application is continuation of U.S. Ser. No. 13/037,824filed on Mar. 1, 2011 which is a continuation of U.S. Ser. No.11/736,788 filed on Apr. 18, 2007 and claims the benefit of U.S.Provisional Application No. 60/795,140, filed Apr. 26, 2006 which areincorporated by reference herein in its entirety.

FIELD OF THE INVENTION

The present invention relates generally to improvements in parallel dataprocessing architectures for video processing and more particularly toapparatus and methods for attaching application specific functionswithin an array processor.

BACKGROUND OF THE INVENTION

Increasing demand for high definition TV products, including interactiveTV in a HD format and HD video compression encoding and decoding,requires increasing sophistication, flexibility, and performance in thesupporting electronics. The sophistication, flexibility, and performancerequirements for HD TV exceeds the capabilities of current generationsof processor architectures by, in many cases, orders of magnitude.

The demands of video encoding for HD formats are both memory and dataprocessing intensive, requiring efficient and high bandwidth memoryorganizations coupled with compute intensive capabilities. In addition,a video encoding product must be capable of supporting multiplestandards each of which includes multiple optional features which can besupported to improve image quality and further reductions in compressionbandwidth. Due to these multiple demands, a flexible parallel processingapproach must be found to meet the demands in a cost effective manner.

A number of algorithmic capabilities are generally common betweenmultiple video encoding standards, such as MPEG-2, H.264, andSMPTE-VC-1. Motion estimation/compensation and deblocking filtering aretwo examples of general algorithms that are required for video encoding.To efficiently support motion estimation algorithms and other complexprogrammable functions which may vary in requirements across themultiple standards, a processor by itself would require significantparallelism and very high clock rates to meet the requirements. Aprocessor of this capability would be difficult to develop in a costeffective manner for commercial products.

An array processor typically requires short pipelines to minimize thecomplexity of having a large number of processor elements on a singlechip. The short pipelines will typically have a minimum number ofexecution stages, such as a single execution stage or two to fourexecution stages, since each pipeline stage adds complexity to theprocessor element and the array processor. As a consequence, simpleexecution functions are typically defined in the array processorinstruction set architecture.

In addition to pipeline control, there are other complexities in anarray processor. For example, to meet performance requirements the arrayprocessor may need to have a large number of processor elements on asingle chip. A large number of processor elements typically limits theoperational clock rate due to chip size and wire length constraints.Even when more complex instruction execution functions are defined, suchas adding a two-cycle execution function instead of a single cycleexecution function, the complex instructions are defined within theconstraint of the processor architecture. The more complex functionswill typically utilize architectural features in the same manner as thesimple execution functions. For example, the fetching of source operandsfor the more complex function will be accomplished in the same manner asthe simpler functions. In a reduced instruction set computer (RISC)processor, the source operands are provided from a central register fileand this access method will be used by the more complex function tomaintain the programming model for the new instructions added. Formemory intensive functions and functions of greater complexity, thesestandard approaches are inadequate.

SUMMARY OF THE INVENTION

In one or more of its several aspects, the present invention addressesproblems such as those described above. In one of its aspects, thepresent invention describes an apparatus that tightly couples a memoryhardware assist unit to each processor and memory node of a scalablearray processor.

In one aspect of one embodiment of the present invention an apparatus isdescribed for providing a memory assist function. At least oneprocessing element (PE) and at least one memory directly associated withthe at least one PE are used. An instruction decode function decodes amemory hardware assist instruction that is an instruction in theinstruction set architecture of the at least one processing element andcauses control signals to be generated to initiate the memory hardwareassist function. A memory hardware assist unit having a memory interfaceto the at least one memory and a PE interface to the at least one PE,the memory hardware assist unit , after being initiated, iterativelyfetches source operands over the memory interface from the at least onememory in parallel with PE operations in the at least one PE andgenerates at least one result operand that is selectively stored overthe memory interface in the at least one memory.

In another embodiment of the present invention a method for providing amulti-cycle memory assist function is described. Receiving a hardwareassist instruction in at least one processing element (PE) having anattached multi-cycle memory hardware assist unit and a memory directlyassociated with the at least one PE. Decoding in the PE a memoryhardware assist instruction that is an instruction in the instructionset architecture of the at least one processing element to generatecontrol signals that initiate the multi-cycle memory assist function inthe multi-cycle memory hardware assist unit. Generating a memory addressto be used in the multi-cycle memory hardware assist unit, wherein thememory address is the start address of source operands to be fetchedfrom the memory associated with the multi-cycle memory hardware assistunit

These and other features, aspects, techniques and advantages of thepresent invention will be apparent to those skilled in the art from thefollowing detailed description, taken together with the accompanyingdrawings and claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates a sixteen node video-specific processor (VSP₁₆) inaccordance with one or more embodiments of the present invention;

FIG. 2 illustrates a transform engine (TE) as a combined instruction andassist function in accordance with a number of embodiments of thepresent invention; and

FIG. 3A illustrates a load hardware assist (LHA) instruction format inaccordance with the present invention;

FIG. 3B illustrates a syntax and operation description table for the LHAinstruction in accordance with the present invention; and

FIG. 4 illustrates an exemplary hardware assist memory organization inaccordance with the present invention.

DETAILED DESCRIPTION

The present invention will now be described more fully with reference tothe accompanying drawings, in which several embodiments of the inventionare shown. This invention may, however, be embodied in various forms andshould not be construed as being limited to the embodiments set forthherein. Rather, these embodiments are provided so that this disclosurewill be thorough and complete, and will fully convey the scope of theinvention to those skilled in the art.

FIG. 1 illustrates a sixteen-node video signal processor (VSP₁₆) 100 inaccordance with one or more embodiments of the present invention. TheVSP₁₆ 100 contains four transform engine (TE) clusters 101-104, aninterconnection network cluster switch 105, a multi-channel directmemory access (DMA) controller 106, and an external memory 107. The DMAcontroller 106 interfaces with the external memory 107 over an externalmemory bus 108 to transfer data to and from the external memory to eachof the TE clusters over a multi-channel DMA bus 109.

Sixteen processor engines (PEs) 110-125 are partitioned in groups offour PEs per cluster as a 4×4 array organization. Each PE providesprogrammable processing and hardware assist functions. SP/PE0 110 isunique as compared to the other fifteen PEs 111-125, having an arraycontrolling function combined with the PE function of PE0. The commonfeatures of the sixteen PEs 110-125 include a set of instructionexecution units including a multiply accumulate unit (MAU) 130, anarithmetic logic unit (ALU) 131, a store unit (SU) 132, a load unit (LU)133, a hardware assist (HA) 134, a data select unit (DSU) 135, a 256×5slot very long instruction word memory (VIM) 136, a local PE registerfile 137, and a data memory 138 local to each PE and HA. Each PE alsocontains local pipeline controls, decode logic, and control logicappropriate for each PE. All VSP₁₆ instructions are executed in a simplepipeline with a majority of instructions requiring a single executionstage and a few instructions requiring two execution stages that arepipelined.

The unique SP/PE0 110 combines a controlling function sequence processor(SP) combined with PE0 functions. To support the SP and PE0, a separateSP register file and a separate PE0 register file, illustrated in oneblock as SP/PE0 register files 140 are used to maintain the processingcontext of the SP and PE0. Though not limited to this, the SP/PE0 sharesa single VIM 141. To control the VSP₁₆ the SP has a single thread ofcontrol supported by an SP instruction memory 142 and an SP data memory144. The SP provides program control, contains instruction and dataaddress generation units, supports interrupts, provides DMA control, anddispatches instructions to the PEs 110-125. The SP executes branches andcontrols the fetching an issuing of instructions, such as load VLIW andexecute VLIW instructions. The load VLIW instruction provides anindirect VIM address and is used to load the instruction slots at thespecified VIM address. The execute VLIW instruction causes a VLIW to beselected at a specified indirect VIM address and executed.

The single SP thread of control supports 4×4 sub-threads which operatesynchronously in lock step single instruction multiple data (SIMD)fashion. Each sub-thread uses very long instruction words (VLIWs) whichare indirectly selected and executed by the single SP thread. Each VLIWin each PE at the same VIM address may be different but all unmasked PEsaccess the same VIM address when executing a VLIW. Five 32-bitinstruction slots are provided in each PE, such that with 16 PEs 8032-bit instructions can execute simultaneously. In addition single,dual, quad, and octal packed data operations may be specifiedindependently by each slot instruction thereby supporting up to 8*80=640instruction specified operations per cycle. As an example of theprocessing power this provides, a VSP₁₆ operating at 250 Mhz may achieve640*250 Mhz=160 Giga operations per second.

The VSP₁₆ processor also uses an interconnection network cluster switch105 providing single cycle data transfers between PEs within clustersand between PEs in orthogonal clusters. The communication operations arecontrolled by a DSU instruction which can be included in a VLIW therebyoverlapping communications with computations which with proper softwarepipelining the communication latency can be reduced to zero. Thecommunication operations operate independently of the DMA which mayoperate in the background to stream data between the local PE memoriesand the external memories.

To support additional processing capability for application specificfunctions such as motion estimation/compensation, deblocking filters,and other high compute functions, a hardware assists unit (HAU) withadvantageous separate connections to local PE memory is provided. A HAUhas one or more multi-cycle tightly coupled state machine functionswhich provide memory intensive application specific operationalcapability to each of the PEs in the VSP₁₆. To provide a scalablemechanism for adding multiple HAUs, a novel tightly coupled interface isprovided by the load unit (LU) and data select unit (DSU) of each PE.For example, HAU 147 interfaces with DSU 148 and LU 149 and the localdata memory associated with PE4 114 as a transform engine 150.

FIG. 2 illustrates a transform engine (TE) subsystem 200 as a combinedinstruction execution and hardware assist function in accordance with anumber of embodiments of the present invention. The TE subsystem 200includes a hardware assists unit (HAU) 202 that interfaces with a dataselect unit (DSU) 203, local PE memory 215, and load unit (LU) 204. TheDSU 203 has an instruction execution unit 205, an instruction decodefunction 206, and an arithmetic flags generated function 207. The DSU203 interfaces with a compute register file 208 of a PE and a VLIWcontrol unit (VCU) condition generate function 209. The HAU 202 fetchesdata from the local PE memory 215 over an input data path 217. The HAU202 generates results which may be stored over out data path 218 in amiscellaneous register file (MRF) 214 or in the local PE data memory215. The instruction execution unit 205 supports the execution of bitselect, shift/rotate, peimute, copy, pexchange, and the like DSUinstructions. DSU instructions may execute in parallel while the HAU 202is operating. The load unit 204 supports the execution of direct,indirect, broadcast and the like LU instructions used primarily forloading data from memory to a compute register file, address registerfile 216, miscellaneous register file 214, hardware assist registersinternal to the HAU 202, and the like. LU and DSU instructions mayexecute in parallel while HAU 202 is operating.

FIG. 3A illustrates a load hardware assist (LHA) instruction format 300in accordance with the present invention. Operations in the HAU 202 maybe initiated by use of an LU instruction or a DSU instruction.

FIG. 3B illustrates a syntax and operation description table 350 for theLHA instruction in accordance with the present invention. Reference toelements of the TE subsystem 200 in FIG. 2 and the bit fields of the LHSinstruction format 300 of FIG. 3 are included as representative ofelements and bit fields used in the operation of TE subsystems of otherPEs in the VSP₁₆. A load HA (LHA) instruction causes an address valuefor a byte, halfword, word or doubleword to be loaded into the HardwareAssist Unit (HAU) 202 even target register Rae as specified in bit field304 from an address generation function in LDU 204. Source addressregister An 306 selected from address register file 216 contains a baseaddress. CRF register Rx selected from CRF 208 as specified in bit field308 is also transferred to the HAU 202 into an odd target register Raoassociated with Rae as specified in bit field 304. If bit 5 Rz/Az 310 isenabled for Rz (Rz/Az=0) then the CRF bit field 308 specifies aneven/odd register pair where the compute register Rz=Rxo contains theunsigned index of the address and Rxe is loaded into HA Rao. If bit 5Rz/Az 310 is enabled for Az (Rz/Az=1) then the CRF bit field 308specifies a 32-bit register Rx to be loaded into HAU 202 Rao and addressregister Az contains the unsigned index of the address. The index can bespecified to be added to or subtracted from the base address. Bit 3 (EnF0) 312 enables the setting of a PE's arithmetic condition flag (ACF) F0upon completion of a hardware assist function, as an OR of hardwareassist function flags on completing execution. The enable bit may alsoenable any hardware assist unit, such as hardware assist units HA1, HA2,and HA3, to store a corresponding ACF flag. For example, HAI is enabledto set F1, HA2 to set F2, HA3 to set F3 with HAI OR HA2 OR HA3 settingthe F0 flag. It is noted that the VSP₁₆ processor supports unaligneddata accesses. Doublewords, words, halfwords and bytes may be accessedat any byte address. The LHA instruction as illustrated in LHAinstruction format 300 executes in a single cycle.

FIG. 4 illustrates an exemplary hardware assist (HA) memory organization400 in accordance with the present invention. The HA memory organization400 contains at least two memory blocks, such as memory block 404 and405 providing support for a local PE memory and a HA memory. In theexemplary HA memory organization 400, five memory blocks 404-408 areshown, supporting a local PE 435 and four hardware assist units, such asHA4 438. Each of the five memory blocks 404-408 is made up of multiplesmaller blocks of memory. For example, memory block 404 is made up ofsix 256×32 blocks 410-415. For different video algorithms, the precisionof pixel values may vary. For example, 8-bit, 10-bit, and 12-bit pixelvalues may be used. In the five memory blocks 404-408 a common memoryorganization is assumed to allow PE load and store accessibility to eachmemory block. With PE data types of 8-bit, 16-bit, 32-bit, and 64-bitfor example, two of the six memory blocks can be accessed to support64-bit packed data load and store operations. For 10-bit pixels,hardware assists can access five 256×32 memory blocks to obtain sixteen10-bit pixels. For 12-bit pixels, hardware assists can access three256×32 memory blocks to obtain eight 12-bit pixels. Other variations arefeasible, such as using K×8 memory blocks, for example, where K isapplication dependent. For 10-bit and 12-bit pixels, the PE couldoperate on the data using 16-bit data types or additional data types canbe added to the instruction set architecture allowing the PEs todirectly operate on packed 10-bit and 12-bit pixels.

Write multiplexing 418 is shown for the five memory blocks 404-408including support for direct memory assist (DMA) write 420, PE store421, and, for example, four hardware assist write operation paths422-425. An exemplary fourth hardware assist unit HA4 438 may also use apath to a PE compute register file 444 or miscellaneous register file445, for example, for result storage. Read multiplexing 426 is shown forsix units including DMA read 426, PE load 427, and for example, fourhardware assist read operations 428-431. A PE 435 initiates operationson a hardware assist unit, such as HA unit 438, when the PE 435 receivesa hardware assist instruction 440. The PE 435 interfaces with the HAunit 438 through a command and data interface 442. Examples ofcommand/controls include unique decode control signals that select a HAunit from a grouping of multiple HA units. Examples of data that may beused on the command and data interface 442 include a start address forHA memory operations, HA parameter control such as stride and holdspecification, block size, and type of operations which more suitablyare provided through register passing from the PE 435 compute registerfile 444. The hardware assist units provide their own state machinecontrol for memory addressing as initiated and controlled by the PE andoperate independently of the PE once operations have been started.Status of hardware assist operations may include the setting ofarithmetic control flags (ACFs) F1-F7 flags 448, such as setting F1 whenHA-1 operation is complete, setting F2 when HA-2 operation is complete,. . . , setting F7 when an HA-7, if used, operation is complete andsetting F0 as a logical OR of the F1-F7 flags 448.

While the present invention has been disclosed in the context of variousspecific illustrative embodiments, it will be recognized that theinvention may be suitably applied to other environments and applicationsconsistent with the claims which follow.

We claim:
 1. An apparatus for providing additional processing capabilityto a processor, the apparatus comprising: a first data memory having afirst plurality of memory blocks and a second data memory having asecond plurality of memory blocks; a processing element (PE) selectivelycoupled to the first data memory and configured to access a firstplurality of data values that are a power of two data type from thefirst plurality of memory blocks; and a first hardware assist (HA) unitseparately coupled to the PE, selectively coupled to the second datamemory, and configured by the PE to access a second plurality of datavalues that are not a power of two data type from the second pluralityof memory blocks in parallel with operations on the PE.
 2. The apparatusof claim 1, wherein the PE is selectively coupled to the second datamemory, the first HA unit is selectively coupled to the first datamemory, and the first HA unit is configured by the PE to access a thirdplurality of data values that are not a power of two data type from thefirst plurality of memory blocks in parallel with the PE accessing afourth plurality of data values that are a power of two data type fromthe second plurality of memory blocks.
 3. The apparatus of claim 1,wherein the memory blocks are K×W-bit memory blocks with K and W powerof two values.
 4. The apparatus of claim 1, wherein the second pluralityof data values that are not a power of two data type are a plurality of10-bit pixel values.
 5. The apparatus of claim 1, wherein the secondplurality of data values that are not a power of two data type are aplurality of 12-bit pixel values.
 6. The apparatus of claim 1, whereinthe first plurality of data values that are a power of two data type area plurality of 8-bit pixel values.
 7. The apparatus of claim 1, whereinthe first HA unit further comprises: a multi-cycle state machineinitiated by the PE to execute a high compute function.
 8. The apparatusof claim 7, wherein the high compute function is a motion estimation andcompensation function.
 9. The apparatus of claim 7, wherein the highcompute function is a deblocking filter.
 10. The apparatus of claim 1further comprises: a third data memory having a third plurality ofmemory blocks; and a second hardware assist (HA) unit separately coupledto the PE, selectively coupled to the third data memory, and configuredby the PE to access a third plurality of data values that are not apower of two data type from the third plurality of memory blocks inparallel with operations on the PE.
 11. The apparatus of claim 10,wherein the second HA unit operates in parallel with the first HA unit.12. The apparatus of claim 1, wherein the PE further comprises: anexecution unit that is configured by an instruction that specifies anoperation on the data values that are not a power of two data type. 13.The apparatus of claim 1, wherein the first HA unit is configured by thePE through a transfer of parameters from the PE to the first HA unitover a command and data interface.
 14. A method for providing additionalprocessing capability to a processor, the method comprising: receivingcontrol information in a hardware assist (HA) unit from a processingelement (PE) to configure a state machine in the HA unit for a highcompute function; and operating the state machine to fetch a firstplurality of data values that are not a power of two data type from afirst plurality of memory blocks in a first data memory in parallel withthe PE accessing a second plurality of data values that are a power oftwo data type from a second plurality of memory blocks in a second datamemory.
 15. The method of claim 14 further comprising: operating on thefirst plurality of data values that are not a power of two in the HAunit to provide a high compute function and generate results that arenot a power of two data type; and operating on at least one result ofthe generated results in the PE by an execution unit that is configuredby an instruction that specifies an operation on data that is not apower of two data type.
 16. The method of claim 15, wherein the highcompute function is a video algorithm.
 17. The method of claim 14,further comprising: operating a direct memory access (DMA) controller toselectively transfer the first plurality of data values that are not apower of two data type from an external memory to the first plurality ofmemory blocks in the first data memory.
 18. An apparatus for providingadditional processing capability to a processor, the apparatuscomprising: a first processing element (PE) directly coupled to a firsthardware assist (HA) unit, the first PE selectively coupled to a firstdata memory, the first HA unit selectively coupled to a second datamemory, wherein the first PE accesses a first plurality of data valuesthat are a power of two data type from the first data memory in parallelwith the first HA unit accesses of a second plurality of data valuesthat are not a power of two data type from the second data memory; asecond PE directly coupled to a second HA unit, the second PEselectively coupled to a third data memory, the second HA unitselectively coupled to a fourth data memory, wherein the second PEaccesses a third plurality of data values that are a power of two datatype from the third data memory in parallel with the second HA unitaccesses of a fourth plurality of data values that are not a power oftwo data type from the fourth data memory; and an array controllingfunction configured to dispatch instructions to the first PE and to thesecond PE that control operations on the first HA unit and the second HAunit.
 19. The apparatus of claim 18, wherein the first HA unit receivesfirst control information from the first PE to configure a first statemachine in the first HA unit for a first high compute function andwherein the second HA unit receives second control information from thesecond PE to configure a second state machine in the second HA unit fora second high compute function.
 20. The apparatus of claim 18, whereinthe second plurality of data values that are not a power of two datatype are a plurality of 10-bit pixel values and the fourth plurality ofdata values that are not a power of two data type are a differentplurality of 10-bit pixel values.